<%-- 
    Document   : saisirNote
    Created on : 21 avr. 2013, 09:18:25
    Author     : Florian
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
        <title>Saisir Note</title>
    </head>
    <body>
       <h1>Saisir les notes de l'examen</h1>
       <form method="post" action="saisirNote">
           <fieldset>
              <legend>Attribution des notes : Promotion <c:out value="${promo.libelle_promo} ${promo.annee_promo}"/></legend>
              <table>
                <tr>
                    <th>Nom</th>
                    <th>Prenom</th>
                    <th>Note</th>
                </tr>
                <c:forEach var="item" items="${etudiants}" >
                <tr>
                    <td><c:out value="${item.nom}" /></td>
                    <td><c:out value="${item.prenom}"/></td>
                    <td><input type='number'  name="<c:out value="note_${item.id}"/>" value="" size='10' min="0" max="20" required="required" /></td>
                </tr>
                </c:forEach>
              </table>                
              <input type="hidden"  name="examen" value="${examen.id_exam}">
              <input type="submit" value="Valider" />
              
              <p>${form.resultat}</p>
        </form>       
     
    
    </body>
</html>